package com.yanfan.energy.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 批次管理表(Batch)实体类
 *
 * @author makejava
 * @since 2022-12-09 09:24:30
 */
public class Batch implements Serializable {
    private static final long serialVersionUID = -63744809531826106L;
    /**
     * 主键
     */
    private Long id;
    /**
     * 订单ID
     */
    private String orderId;
    /**
     * 设备ID
     */
    private Long deviceId;
    /**
     * 批次编号
     */
    private String number;
    /**
     * 预计开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginDate;
    /**
     * 预计结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endDate;
    /**
     * 预计用时
     */
    private String timeConsuming;
    /**
     * 订单编号
     *
     * @author caijinkang
     * @date 2022/12/9 9:29
     * @param null
     * @return null
     */
    private String orderNumber;
    /**
     * 设备编号
     *
     * @author caijinkang
     * @date 2022/12/9 9:34
     * @param null
     * @return null
     */
    private String deviceNumber;
    /**
     * 类型（1、待处理，2、生产中，3、已完成）
     *
     * @author caijinkang
     * @date 2022/12/9 9:37
     * @param null
     * @return null
     */
    private Integer type;
    /**
     * 创建人
     */
    private String createdBy;
    /**
     * 创建时间
     */
    private Date createdDate;
    /**
     * 修改时间
     */
    private Date lastModifiedDate;


    public Batch() {
    }

    public Batch(Long id, String orderId, Long deviceId, String number, Date beginDate, Date endDate, String timeConsuming, String orderNumber, String deviceNumber, Integer type, String createdBy, Date createdDate, Date lastModifiedDate) {
        this.id = id;
        this.orderId = orderId;
        this.deviceId = deviceId;
        this.number = number;
        this.beginDate = beginDate;
        this.endDate = endDate;
        this.timeConsuming = timeConsuming;
        this.orderNumber = orderNumber;
        this.deviceNumber = deviceNumber;
        this.type = type;
        this.createdBy = createdBy;
        this.createdDate = createdDate;
        this.lastModifiedDate = lastModifiedDate;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public Date getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(Date beginDate) {
        this.beginDate = beginDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public String getTimeConsuming() {
        return timeConsuming;
    }

    public void setTimeConsuming(String timeConsuming) {
        this.timeConsuming = timeConsuming;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    public Date getLastModifiedDate() {
        return lastModifiedDate;
    }

    public void setLastModifiedDate(Date lastModifiedDate) {
        this.lastModifiedDate = lastModifiedDate;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public String getDeviceNumber() {
        return deviceNumber;
    }

    public void setDeviceNumber(String deviceNumber) {
        this.deviceNumber = deviceNumber;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "Batch{" + "id=" + id + ", orderId='" + orderId + '\'' + ", deviceId=" + deviceId + ", number='" + number + '\'' + ", beginDate=" + beginDate + ", endDate=" + endDate + ", timeConsuming='" + timeConsuming + '\'' + ", orderNumber='" + orderNumber + '\'' + ", deviceNumber='" + deviceNumber + '\'' + ", type=" + type + ", createdBy='" + createdBy + '\'' + ", createdDate=" + createdDate + ", lastModifiedDate=" + lastModifiedDate + '}';
    }
}

